﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="JDMovieDetails.aspx.vb" Inherits="JohnnyDepp.JDMovieDetails" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="JDFanSqlDataSource" DataKeyNames="ID">
        <Columns>
            <asp:ImageField DataImageUrlField="Poster" HeaderText="Movie Poster">
                <ControlStyle Height="300px" Width="300px" BorderStyle="None" />
            </asp:ImageField>
            <asp:BoundField DataField="Movie_Name" HeaderText="Movie_Name" 
                SortExpression="Movie_Name" />
            <asp:BoundField DataField="Rating" HeaderText="Rating" 
                SortExpression="Rating" />
            <asp:BoundField DataField="Movie_Category" HeaderText="Movie_Category" 
                SortExpression="Movie_Category" />
            <asp:BoundField DataField="Director_Name" HeaderText="Director_Name" 
                SortExpression="Director_Name" />
            <asp:BoundField DataField="Role_of_JD" HeaderText="Role_of_JD" 
                SortExpression="Role_of_JD" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="Movie_Business" HeaderText="Movie_Business" 
                SortExpression="Movie_Business" />
        </Columns>
    </asp:GridView>
        <asp:SqlDataSource ID="JDFanSqlDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JDFanConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:JDFanConnectionString.ProviderName %>" 
            SelectCommand="SELECT DISTINCT * FROM [JDF_List] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
</p>
    <p>
    &nbsp;<asp:Button ID="BtnLike" runat="server" Text="Like " />
        <asp:Image ID="ImgLike" runat="server" ImageUrl="~/Pictures/likes.png" />
</p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2">
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Comments" HeaderText="Comments" 
                    SortExpression="Comments" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JDFanConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:JDFanConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [Author], [Title], [Comments], [FkID_JDFList] FROM [Comments] WHERE ([FkID_JDFList] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="FkID_JDFList" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
</p>
    <p>
        <strong>Title</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_Title" runat="server"></asp:TextBox>
        <asp:DropShadowExtender ID="tb_Title_DropShadowExtender" runat="server" 
            Enabled="True" TargetControlID="tb_Title">
        </asp:DropShadowExtender>
</p>
    <p>
        <strong>Comment</strong></p>
    <p>
        <asp:TextBox ID="tb_Comment" runat="server" Height="218px" TextMode="MultiLine" 
            Width="542px"></asp:TextBox>
        <asp:DropShadowExtender ID="tb_Comment_DropShadowExtender" runat="server" 
            Enabled="True" TargetControlID="tb_Comment">
        </asp:DropShadowExtender>
</p>
<p>
    <asp:Button ID="Btn_AddComment" runat="server" Text="Add Comment" />
    <asp:DropShadowExtender ID="Btn_AddComment_DropShadowExtender" runat="server" 
        Enabled="True" TargetControlID="Btn_AddComment">
    </asp:DropShadowExtender>
</p>
    <p>
        <asp:CheckBoxList ID="CbTags" runat="server" 
            DataSourceID="TagSqlDataSource" DataTextField="TagName" 
            DataValueField="ID" RepeatDirection="Horizontal">
        </asp:CheckBoxList>
                <asp:RoundedCornersExtender ID="CbTags_RoundedCornersExtender" 
            runat="server" Enabled="True" TargetControlID="CbTags">
        </asp:RoundedCornersExtender>
                <br />
        <asp:Button ID="Btn_AddTags" runat="server" Text="Tag Jonny Depp Movie" />
        
        <asp:DropShadowExtender ID="Btn_AddTags_DropShadowExtender" runat="server" 
            Enabled="True" TargetControlID="Btn_AddTags">
        </asp:DropShadowExtender>
        
</p>
    <p>
        
        Add New Tag <asp:TextBox ID="tb_NewTag" runat="server"></asp:TextBox>
        <asp:DropShadowExtender ID="tb_NewTag_DropShadowExtender" runat="server" 
            Enabled="True" TargetControlID="tb_NewTag">
        </asp:DropShadowExtender>
        <asp:Button ID="Btn_NewTag"
            runat="server" Text="Add New Tag" />

        <asp:DropShadowExtender ID="Btn_NewTag_DropShadowExtender" runat="server" 
            Enabled="True" TargetControlID="Btn_NewTag">
        </asp:DropShadowExtender>

        <asp:SqlDataSource ID="TagSqlDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:JDFanConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:JDFanConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM [Tags]"></asp:SqlDataSource>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
</p>
</asp:Content>
